class Person {
  // 与类相关的的数据才放到内里面
  public name: string | undefined;
  public age: number = 0;
  public sex: string = "男";
  public Person: Array<string> | undefined;

  public doEat() {
    console.log(``);
  }

  public getMyName(friends: string, why: string) {
    console.log(`我${this.name} 和 ${friends}在 ${why}`);
  }
}

const ziXia = new Person();
// 给对象赋值方式有二种
// 1 通过类中的属性或方法来赋值
ziXia.name = "自夏";
ziXia.age = 23;
// 2 通过构造函数来赋值

ziXia.getMyName("z竹竹", "吃饭");

//yarn global add parcel-bundler
export {};
